package com.dsg.mappers;


import com.dsg.entity.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    /**
     * 通过权限获取全部的左边的菜单
     * @param parentId
     * @return
     */
    List<Permission> findPermissionPermId(@Param("parentId") Integer parentId);

    /**
     * 通过员工获取不同的权限
     * @param username
     * @return
     */
    List<String> findPermCode(String username);
}
